//
//  MainModel.m
//  BeanSproutEDU
//
//  Created by douya on 15/1/14.
//  Copyright (c) 2015年 douya. All rights reserved.
//

#import "MainModel.h"
#import "VideoModel.h"
@implementation MainModel
+(MainModel*)parserMainInfoWithDictionary:(NSDictionary *)dict
{
    MainModel *model=[[MainModel alloc] init];
    
    model.MSGArray=[NSMutableArray array];
    
    model.flag=[dict objectForKey:@"flag"];
    
    NSMutableArray *array=[dict objectForKey:@"msg"];
    
    for (NSDictionary *dict in array)
    {
        VideoModel *videoM=[VideoModel praserVideoInfoWithDictionary:dict];
        [model.MSGArray addObject:videoM];
    }
    
    return model;
}
@end
